
package com.filetransfer.util;

import java.io.PrintStream;

//import org.apache.commons.logging.impl.LogFactoryImpl;

/**
 * 功能说明:  <br>
 * 开发人员: hanxuetong <br>
 * 开发时间: 2014-8-7 <br>
 * ======== ====== ============================================ <br>
 * 
 */
public class PrintStreamLog {

	
/*	
	 private void log(Object info) {
	        LogFactoryImpl.getLog("transferlog").info(info);
	  }
	
	public void putlog()
	{
		PrintStream printStreams = new PrintStream(System.out) {
            public void println(boolean x) {
                log(Boolean.valueOf(x));
            }
            public void println(char x) {
                log(Character.valueOf(x));
            }
            public void println(char[] x) {
                log(x == null ? null : new String(x));
            }
            public void println(double x) {
                log(Double.valueOf(x));
            }
            public void println(float x) {
                log(Float.valueOf(x));
            }
            public void println(int x) {
                log(Integer.valueOf(x));
            }
            public void println(long x) {
                log(x);
            }
            public void println(Object x) {
                log(x);
            }
            public void println(String x) {
                log(x);
            }
        };
        System.setOut(printStreams);
        System.setErr(printStreams);
		
		
	}*/
	
}
